<template>
  <div>
    <h2>{{value}}</h2>
    <button @click="btnHandel">Vue3项目</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: 0,
    }
  },
  methods: {
    btnHandel() {
      this.value++
      console.log('vue3----------点击了')
    },
  },
}
</script>

<style>
/* * {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
} */
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
